package jwxx.json;

import com.google.gson.annotations.Expose;

public class PlayerInfo extends GsonBase implements Cloneable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -1353055480442194607L;
	
	@Expose
	private int valid_dam_min;
	@Expose
	private int valid_dam_max;
	@Expose
	private int valid_metal;
	@Expose
	private int valid_wood;
	@Expose
	private int valid_water;
	@Expose
	private int valid_fire;
	@Expose
	private int valid_earth;
	@Expose
	private int skill_probability;
	@Expose
	private int valid_direct_hit;
	@Expose
	private int curr_hp;
	@Expose
	private int valid_max_hp;
	@Expose
	private int item_type;
	@Expose
	private float valid_skill_plus;
	
	public int getValidDamMin(){
		return valid_dam_min;
	}
	
	public void setValidDamMin(int valid_dam_min){
		this.valid_dam_min=valid_dam_min;
	}
	public int getValidDamMax(){
		return valid_dam_max;
	}
	public void setValidDamMax(int valid_dam_max){
		this.valid_dam_max=valid_dam_max;
	}	
	public int getPlayMetal(){
		return valid_metal;
	}
	public void setPlayMetal(int valid_metal){
		this.valid_metal=valid_metal;
	}
	public int getPlayWood(){
		return valid_wood;
	}
	public void setPlayWood(int valid_wood){
		this.valid_wood=valid_wood;
	}
	public int getPlayWater(){
		return valid_water;
	}
	public void setPlayWater(int valid_water){
		this.valid_water=valid_water;
	}
	public int getPlayFire(){
		return valid_fire;
	}
	public void setPlayFire(int valid_fire){
		this.valid_fire=valid_fire;
	}
	public int getPlayEarth(){
		return valid_earth;
	}
	public void setPlayEarth(int valid_earth){
		this.valid_earth=valid_earth;
	}
	public int getSkillProbability(){
		return skill_probability;
	}
	public void setSkillProbability(int skill_probability){
		this.skill_probability=skill_probability;
	}
	public int getValidDirectHit(){
		return valid_direct_hit;
	}
	public void setValidDirectHit(int valid_direct_hit){
		this.valid_direct_hit=valid_direct_hit;
	}
	public int getCurrHp(){
		return curr_hp;
	}
	public void setCurrHp(int curr_hp){
		this.curr_hp=curr_hp;
	}
	public int getMaxHp(){
		return valid_max_hp;
	}
	public void setMaxHp(int valid_max_hp){
		this.valid_max_hp=valid_max_hp;
	}	
	public int getItemType(){
		return item_type;
	}
	public void setItemType(int item_type){
		this.item_type=item_type;
	}
	public float getSkillPlus(){
		return valid_skill_plus;
	}
	public void setSkillPlus(float valid_skill_plus){
		this.valid_skill_plus=valid_skill_plus;
	}	
	
	public PlayerInfo()
	{
		//GsonBase rely on this func
		setJsonType(PlayerInfo.class.getName());
	}
	
	@Expose
	private int id;
	@Expose
	private String name;
	
	public int getPlayerDd() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
    //GsonBase rely on this func
	public static Object InitFromJson(String JsonString)
	{
		return InitFromJson(JsonString,PlayerInfo.class);	
	}
}